package day5.homewok;

public class Rectangle {
	private double width;
	private double height;
	
	public Rectangle() {
		//width = 10;
		//height = 10;
	}
	
	public Rectangle(int width) {
		this.width = width;
		this.height = width;
	}
	
	public Rectangle(int width, int height) {
		this.width = width;
		this.height = height;
	}

	public double zhouChang() {
		return (width + height) * 2;
	}
	
	public double mianJi() {
		return width * height;
	}
}
